package com.szsh.aiot.common.core.domain;

import com.google.gson.JsonElement;

/**
 * 请求实体
 */
public class RequestDto implements java.io.Serializable {
    private static final long serialVersionUID = 6333315115878723958L;

    /** 请求流水号 */
    private String sequenceNo;
    /** 应用ID */
    private String appId;
    /** 密钥版本 */
    private String version;
    /** 请求参数 */
    private String data;
    /** 签名字段 */
    private String signature;
    /** 解密后参数 */
    private JsonElement requestJsonElement;
    /** 获取的加密密钥信息 */
    private Key key;

    public String getSequenceNo() {
        return sequenceNo;
    }

    public void setSequenceNo(String sequenceNo) {
        this.sequenceNo = sequenceNo;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public JsonElement getRequestJsonElement() {
        return requestJsonElement;
    }

    public void setRequestJsonElement(JsonElement requestJsonElement) {
        this.requestJsonElement = requestJsonElement;
    }

    public Key getKey() {
        return key;
    }

    public void setKey(Key key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "RequestDto{" +
                "sequenceNo='" + sequenceNo + '\'' +
                ", appId='" + appId + '\'' +
                ", version='" + version + '\'' +
                ", data='" + data + '\'' +
                ", signature='" + signature + '\'' +
                ", requestJsonElement=" + requestJsonElement +
                ", key=" + key +
                '}';
    }
}
